package com.analyse.stock.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class StockKlineModel<T extends StockKlineModel<?>> extends BaseModel<T> implements Serializable {
    private String stockCode;
    //交易日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date tradeDate;
    //换手率
    private BigDecimal exchangeRate;
    //最新价
    private BigDecimal price;
    //今日开盘价格
    private BigDecimal openPrice;
    //当日最高价格
    private BigDecimal highPrice;
    //当日最低价格
    private BigDecimal lowerPrice;
    //成交量
    private BigDecimal tradeVolume;
    //成交额
    private BigDecimal tradeAmount;
    //涨跌幅度
    private BigDecimal upDownPercent;
    //涨跌价格
    private BigDecimal upDownAmt;
    //振幅
    private BigDecimal amplitude;
}
